﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.Models
{
    /// <summary>
    /// 门店表
    /// </summary>
    public class Store : ModelAudit
    {
        [Key]
        public int Id { get; set; }

        [Required, MaxLength(100)]
        public string StoreName { get; set; } // 门店名称


        /// <summary>
        /// 门店照片
        /// </summary>
        [Required, MaxLength(500)]
        public string Img { get; set; }

        [Required]
        public int RegionId { get; set; } // 所在地区外键

        [Required, MaxLength(50)]
        public string ManagerName { get; set; } // 店长姓名

        [Required, MaxLength(20)]
        public string ManagerPhone { get; set; } // 店长手机号

        [Required]
        public DateTime EstablishDate { get; set; } // 门店成立日期

        [Required]
        public int MaxCustomers { get; set; } // 同时接待最大人数

        [Required]
        public int Status { get; set; } // 门店状态：1-休息，2-营业，3-关闭

    }
}
